package com.ruoyi.work.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.work.domain.WorkExpense;
import com.ruoyi.work.domain.WorkPaper;

/**
 * 稿件管理Service接口
 * 
 * @author ruoyi
 * @date 2021-12-26
 */
public interface IWorkPaperService 
{
    /**
     * 查询稿件管理
     * 
     * @param paperId 稿件管理主键
     * @return 稿件管理
     */
    public WorkPaper selectWorkPaperByPaperId(Long paperId);

    /**
     * 批量查询稿件管理
     *
     * @param paperIds 需要查询的数据主键集合
     * @return 结果
     */
    public List<WorkPaper> selectWorkPaperByPaperIds(String[] paperIds);
    public List<WorkPaper> selectWorkPaperByBatchId(Long batchId);
    /**
     * 查询稿件管理列表
     * 
     * @param workPaper 稿件管理
     * @return 稿件管理集合
     */
    public List<WorkPaper> selectWorkPaperList(WorkPaper workPaper);
    public List<WorkPaper> selectWorkPaperGroupList(WorkPaper workPaper);
    public List<WorkPaper> selectWorkPaperLists(WorkPaper workPaper);
    public List<WorkPaper> selectWorkPaperGroupLists(WorkPaper workPaper) ;
    /**
     * 新增稿件管理
     * 
     * @param workPaper 稿件管理
     * @return 结果
     */
    public int insertWorkPaper(WorkPaper workPaper);

    /**
     * 修改稿件管理
     * 
     * @param workPaper 稿件管理
     * @return 结果
     */
    public int updateWorkPaper(WorkPaper workPaper);

    /**
     * 删除稿件发票号
     *
     * @param invoiceId 稿件管发票号
     * @return 结果
     */
    public int updateWorkPaperInvoice(Long invoiceId) ;
    /**
     * 批量删除稿件管理
     * 
     * @param paperIds 需要删除的稿件管理主键集合
     * @return 结果
     */
    public int deleteWorkPaperByPaperIds(String paperIds);

    /**
     * 删除稿件管理信息
     * 
     * @param paperId 稿件管理主键
     * @return 结果
     */
    public int deleteWorkPaperByPaperId(Long paperId);
    public List<WorkPaper>  selectPaperNoCancel(Map<String,Object> map);
    /**
     * 销账查询销账部分稿件
     *
     * @param incomingId 来款主键
     * @return 结果
     */
    public List<WorkPaper>  selectPaperByCancel(Map<String,Object> map);

    public int updateWorkPaperCancelTime(String[] invoiceIds);

    public int updateWorkPaperBackReq(String[] requestIds);
}
